<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>管理员管理</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<% include("/admin/resource/common_css.html"){} %>
	</head>
	<body>
		<% include("/admin/common/header.html"){} %>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<div class="main-container-inner">
			    <% include("/admin/common/menu.html",{currentstr:"系统"}){} %>
				<div class="main-content">
                <% include("/admin/common/breadcrumb.html",{breadaddfirst:"系统管理",breadaddsecond:"用户管理",breadaddthird:"用户添加"}){} %>
					<div class="page-content">
			       	   <form id="myform"  method="POST"  action="save" onsubmit="return checkeData();"> 
				       	 <table style="margin:auto; width:75%;margin-top:30px;">
			               	<tr>
			              	   <td align="right" nowrap="nowrap">名称：</td> 
							   <td width="900px">
							      <input type="text" name="adminUser.name" id="name" value="${adminUser.name!}" placeholder="王**"><span class="red">&nbsp;*</span>
							    </td>
			              	 </tr> 
			              	 <tr>
							    <td align="right" nowrap="nowrap">登陆名:</td>  
							    <td>
							     <input type="text" name="adminUser.login_name" id="login_name" value="${adminUser.login_name!}" placeholder="loginName**"><span class="red">&nbsp;*</span>
			                   </td>
			              	 </tr> 
			              	  <tr>
			                    <td align="right" nowrap="nowrap">密码:</td>  
							    <td>
							     <input type="password" name="adminUser.password" id="password"  placeholder="Password"><span class="red">&nbsp;*</span>
			                    </td>
			              	</tr>  
			              	 <tr>
			                    <td align="right" nowrap="nowrap">确认密码:</td>  
							    <td>
							      <input   name="passwordaging" id="passwordaging"  type="password" placeholder="Password" ><span class="red">&nbsp;*</span>
			                    </td>
			              	</tr>
			              	 <tr>
			              	    <td align="right" nowrap="nowrap">手机:</td>  
							    <td>
							     <input type="text" name="adminUser.mobile" id="mobile" value="${adminUser.mobile!}" placeholder="18888888888"><span class="red">&nbsp;*</span>
			                    </td>
			              	</tr>
			              	 <tr>
							   <td align="right" nowrap="nowrap">邮箱:</td>  
							    <td>
							     <input type="text" name="adminUser.email" id="email" value="${adminUser.email!}" placeholder="yourEmail@sian.com"><span class="red">&nbsp;*</span>
			                    </td>
			              	</tr>
			              	<tr>
			              	    <td align="right" nowrap="nowrap">角色:</td>  
							    <td>
								     <select name="adminUserRole.role_id" id="roleid">
						                <% for(role in roleList!){%>
						                  <option value="${role.id}" <%if(currntRole.id! == role.id){print("selected='selected'");}%>>${role.name!}</option>
								        <%}%>
								     </select>
			                    </td>
			              	</tr> 
						 </table>
						<div class="form-actions">
						  <button class="btn btn-success" id="submit"  type="submit">保存</button>
						    <input type="hidden" name="adminUser.id" value="${adminUser.id!}"/>
						  <input type="hidden" name="oprtype" value="${oprtype!}"/>
					    </div>
				     </form> 
				     
				     <div id="Modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"  style="width:800px"> 
						  <div class="modal-header">
						    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						    <h3 id="myModalLabel"> <i class="icon-edit"></i>选择管理驾校</h3>
						  </div>
						  <div class="modal-body"  style="height:400px;overflow:hidden;">  
						      <iframe id ="iframe" src="${ctx!}/admin/school/manaList" marginheight="0" marginwidth="0" frameborder="0"  width="100%" height="100%" scrolling="auto"></iframe>  
						  </div>
						  <div class="modal-footer">
						     <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
						     <button  class="btn btn-success" data-dismiss="modal" aria-hidden="true">确定</button>
					      </div>
				      </div>
					<!-- /.page-content -->
				</div><!-- /.main-content -->
			 <div id="page"></div>
			 <% include("/admin/common/acesetting.html"){}%>
		  </div><!-- /.main-container-inner -->
		</div><!-- /.main-container -->
	<% include("/admin/common/footer.html"){} %>
	<% include("/admin/resource/common_js.html"){} %>
	<script type="text/javascript" src="${ctx!}/js/admin/auth/user.js"></script>
</body>
</html>

